const layout = () => import('@/components/front/layout/layout.vue');
const index = () => import('@/view/front/index/index.vue');
const list = () => import('@/view/front/list/index.vue');
const view = () => import('@/view/front/view/index.vue');

let frontRouter = [{
  path: '/',
  meta: {
    title: '今日头条'
  },
  redirect: '/index',
  component: layout,
  children: [
    //首页
    {
      name: 'front',
      path: 'index',
      component: index,
      meta: {
        title: "首页",
        roles: ['all'],
        keepAlive: true,
      }
    },
    //列表
    {
      path: 'list',
      component: list,
      meta: {
        title: "列表",
        roles: ['all'],
        keepAlive: true,
      }
    },
    //列表
    {
      path: 'view',
      component: view,
      meta: {
        title: "详情页",
        roles: ['all'],
        keepAlive: true,
      }
    },
  ]
}]
export default frontRouter
